// 商品分类导航
<template>
  <div class="list">
    <!-- <h3>{{ floor.title }}</h3> -->
    <ol>
      <li v-for="item in floor.goodS" :key="item.id" class="goods" @click="jumpProductDetails">
        <img :src="item.goodsrc">
        <p>{{item.title}}</p>
      </li>
    </ol>
  </div>
</template>
<script>
import goods from "../../../assets/images/goods1.png"
export default {
  name: "ListNav",

  props: ["floor"],

  data() {
    return {
      // title : '01 气动元件'
    }
  },

  methods: {
    jumpProductDetails() {
      // this.$router.push('/productDetails')
      console.log("点击了 商品导航")
    }
  }
}
</script>
<style lang="scss" scoped>
.list {
  width: 972px;
  height: auto;
  margin-top: 20px;
  h3 {
    color: #3e3e3e;
    font-size: 16px;
    padding-left: 10px;
    margin-left: 16px;
    margin-bottom: 16px;
    margin-top: 20px;
    line-height: 16px;
    border-left: 3px solid #bebebe;
  }
  ol {
    width: 971px;
    border-top: 1px solid #dedede;
    border-left: 1px solid #dedede;
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    li {
      width: 193.2px;
      height: 219px;
      border-bottom: 1px solid #d0d0d0;
      border-right: 1px solid #d0d0d0;
      cursor: pointer;
      &:hover img {
        opacity: 0.8;
      }
      img {
        width: 136px;
        height: 136px;
        margin-left: 28.7px;
      }
      p {
        font-size: 14px;
        text-align: center;
        overflow: hidden;
        white-space: nowrap;
        text-overflow: ellipsis;
        &:last-child {
          margin-top: 10px;
        }
      }
    }
  }
}
</style>
